using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;

namespace Bejeweled.Manager
{
    class PointBar
    {
        Texture2D bar;

        public PointBar(Texture2D healthImage)
        {
            this.bar = healthImage;
        }

        public void draw(SpriteBatch spriteBatch,GameTime gametime,int point)
        {
            point = (int)(MathHelper.Clamp(point, 0, 459));
            spriteBatch.Draw(bar,
                new Rectangle(765,470, point,25),null, Color.White,-MathHelper.PiOver2,Vector2.Zero,SpriteEffects.FlipVertically,1f);
        }
    }
}
